import request from "../request";
// 判断当前位置审核状态
export const checkPosition = (params) => {
    return request({
        url: '/appClock/checkPosition',
        method: 'POST',
        data: params,
    });
};

// 保存
export const save = (params) => {
    return request({
        url: '/appClock/save',
        method: 'POST',
        data: params
    });
};

// 查询当前用户今日打卡记录
export const queryDay = (data) => {
    return request({
        url: '/appClock/queryDay',
        method: 'POST',
        data: data
    });
};
// 获取用户信息
export const getUserInfo = (params) => {
    return request({
        url: '/system/user/listOne',
        method: 'GET',
        data: params
    });
};

// 查询是否符合打卡
export const checkWhiteList = (params) => {
    return request({
        url: '/AUTODK/list',
        method: 'GET',
        data: params
    });
};
//节假管理查询
// export function searchJjInfo(params) {
//     return request({
//         url: '/holiday/list',
//         method: 'GET',
//         data: params
//     })
// }
//查询是否为假期
export function searchHoliday(params) {
    return request({
        url: '/holiday/selectHoliday',
        method: 'GET',
        data: params
    })
}